package com.sohu.peak.gallery.web;

import org.springframework.context.ApplicationContext;

public class SpringContextManager {
    private static SpringContextManager _instance = new SpringContextManager();
    
    private static ApplicationContext ac;
    
    public static SpringContextManager getInstance() {
        return _instance;
    }

    private SpringContextManager(){}

    public void setApplicationContext(ApplicationContext ac) {
        this.ac = ac;
    }
        
    
    public static  Object getBean(String servieName) {
        return ac.getBean(servieName);
    }
    
}

